package com.ncu.weatherchina;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

public class ZhiShuActivity extends AppCompatActivity {
    private ZhiShuAdapter mlistAdapter;
    private ListView mListView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhi_shu);
        Intent it = getIntent();
        List list = new ArrayList<WeatherIndex>();
        list = (List<WeatherIndex>) it.getSerializableExtra("list");
        List<WeatherIndex> list1 = new ArrayList<WeatherIndex>();
        list1 = list;
        //mlistAdapter= new ZhiShuAdapter(ZhiShuActivity.this,list);
        //mListView.setAdapter(mlistAdapter);
        Log.d("1111",list1.get(0).getName());
        Log.d("1111",list1.get(0).getDetail());
        Log.d("1111",list1.get(0).getValue());
        Log.d("1111",list1.get(1).getName());
        Log.d("1111",list1.get(1).getDetail());
        Log.d("1111",list1.get(1).getValue());
    }
}
